package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预存款管理对象 zhwy_advancedeposit
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyAdvancedeposit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private Long shopsId;

    /** 可用收费项 */
    private Long type;

//    商铺编号
    private String code;
//    收费项名字
    private String chargeitemName;
//    支付方式name
    private String payName;

    /** 收费项目 */
    @Excel(name = "收费项目")
    private Long chargeitemId;

    /** 收费金额 */
    @Excel(name = "收费金额")
    private double amt;

    /** 付款方式 */
    @Excel(name = "付款方式")
    private Long payId;

    /** 收款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 收款人 */
    @Excel(name = "收款人")
    private String chargeUser;

    /** 单号 */
    @Excel(name = "单号")
    private String payNo;

    /** 付款类型 */
    private String payType;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 账户余额 */
    private double balance;

    /** 退款人姓名 */
    private String refundUser;

    /** 退款时间 */
    private Date refundTime;

    /** 退款方式id */
    private Long refundId;

    public String getChargeitemName() {
        return chargeitemName;
    }

    public void setChargeitemName(String chargeitemName) {
        this.chargeitemName = chargeitemName;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopsId(Long shopsId) 
    {
        this.shopsId = shopsId;
    }

    public Long getShopsId() 
    {
        return shopsId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setChargeitemId(Long chargeitemId) 
    {
        this.chargeitemId = chargeitemId;
    }

    public Long getChargeitemId() 
    {
        return chargeitemId;
    }
    public void setAmt(double amt)
    {
        this.amt = amt;
    }

    public double getAmt()
    {
        return amt;
    }
    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setChargeUser(String chargeUser) 
    {
        this.chargeUser = chargeUser;
    }

    public String getChargeUser() 
    {
        return chargeUser;
    }
    public void setPayNo(String payNo) 
    {
        this.payNo = payNo;
    }

    public String getPayNo() 
    {
        return payNo;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setBalance(double balance)
    {
        this.balance = balance;
    }

    public double getBalance()
    {
        return balance;
    }
    public void setRefundUser(String refundUser) 
    {
        this.refundUser = refundUser;
    }

    public String getRefundUser() 
    {
        return refundUser;
    }
    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }
    public void setRefundId(Long refundId) 
    {
        this.refundId = refundId;
    }

    public Long getRefundId() 
    {
        return refundId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopsId", getShopsId())
            .append("type", getType())
            .append("chargeitemId", getChargeitemId())
            .append("amt", getAmt())
            .append("payId", getPayId())
            .append("payTime", getPayTime())
            .append("chargeUser", getChargeUser())
            .append("payNo", getPayNo())
            .append("payType", getPayType())
            .append("state", getState())
            .append("balance", getBalance())
            .append("refundUser", getRefundUser())
            .append("refundTime", getRefundTime())
            .append("refundId", getRefundId())
            .toString();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
